package com.pateo.bjev.bjevvehicle.dummy;

import com.pateo.bjev.bjevvehicle.bean.PowerCost;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by pateo on 17-6-1.
 */

public class Dummy {
    public static void reqRecord(PowerCostCallback powerCostCallback) {
        List<PowerCost> costs = new ArrayList<>();
        int pointCount = 50;
        for (int i = 0; i < pointCount; i++) {
            PowerCost cost = new PowerCost();
            cost.setMiles(100/pointCount * i);
            cost.setPowercost((float) Math.random());
            costs.add(cost);
        }
        powerCostCallback.callback(costs);
    }
}
